package lab02.Test10;

import lab02.Test07.Person;

/**
 * Created by Administrator on 2017/10/19.
 */
public class Test10 {
    public static void main(String[] args) {
        People people = new People();
        people.name="张三";
        people.sex="男";
        System.out.println(people.toString());
        ChinaPeople chinaPeople = new ChinaPeople();
        chinaPeople.name = "赵四";
        chinaPeople.sex = "男";
        chinaPeople.country = "中国";
        System.out.println(chinaPeople.toString());
        AmericanPeople americanPeople = new AmericanPeople();
        americanPeople.name="TOM";
        americanPeople.sex = "男";
        americanPeople.country = "美国";
        System.out.println(americanPeople.toString());
        BeiJingPeople beiJingPeople = new BeiJingPeople();
        beiJingPeople.name = "周一";
        beiJingPeople.sex = "女";
        beiJingPeople.country = "中国";
        beiJingPeople.province = "北京";
        System.out.println(beiJingPeople.toString());
    }
}
